#include <REGX52.H>
#include "Delay.H"
#include "LCD1602.H"

#include "XPT2046.H"


unsigned int ADValue;


void main()
{
	LCD_Init();	
	while(1)
	{
	ADValue=XPT2046_ReadAD(XPT2046_XP);
	LCD_ShowNum(1,1,ADValue,3);	
		
	ADValue=XPT2046_ReadAD(XPT2046_YP);
	LCD_ShowNum(1,5,ADValue,3);	
		
	ADValue=XPT2046_ReadAD(XPT2046_VBAT);
	LCD_ShowNum(1,9,ADValue,3);
		
	Delay(10);	 
	}
}